projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086c92e
)
Tweak return of xvasprintf() to make it match Linux & FreeBSD behaviour.
author
robertl
<robertl>
Mon, 27 Nov 2006 20:59:32 +0000
(20:59 +0000)
committer
robertl
<robertl>
Mon, 27 Nov 2006 20:59:32 +0000
(20:59 +0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index 2dc7ed9b9207c4e098911d04654d82b39e15b094..1849e9bd8a96b18677f06632642f549d542abc57 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-288,6
+288,11
@@
xfputs(const char *errtxt, const char *s, FILE *stream)
/*
* Allocate a string using a format list with optional arguments
+ * Returns -1 on error.
+ * If return value is anything else, *strp will be populated with an
+ * allocated string containging the formatted buffer.
+ *
+ * Freeing that is the responsbility of the caller.
*/
int
@@
-361,7
+366,7
@@
xasprintf(char **strp, const char *fmt, ...)
}
}
*strp = buf;
- return
0
;
+ return
outsize
;
}
/*